//
//  HQHotDetailViewController.m
//  MobileiOS
//
//  Created by 郝庆松 on 2018/5/20.
//  Copyright © 2018年 PCITC. All rights reserved.
//

#import "HQHotDetailViewController.h"

@interface HQHotDetailViewController ()

@end

@implementation HQHotDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"热点详情";
    
    [_tuPian setImageWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.dataInfo[@"s_img"]]] placeholderImage:nil success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull image) {
        _tuPian.image = image;
        _imageHegithConstraint.constant = (SCREEN_WIDTH/(image.size.width/ image.size.height));
    } failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {
        
    }];
    
    _fengGe.text = self.dataInfo[@"fengge"];
    _bianHao.text = [NSString stringWithFormat:@"产品编号: %@",_dataInfo[@"s_bh"]];
    _jiaGe.text = [NSString stringWithFormat:@"产品零售价: ￥%@",_dataInfo[@"price"]];
    _mingCheng.text = [NSString stringWithFormat:@"厂家名称: %@",_dataInfo[@"username"]];
    _fengGe2.text = [NSString stringWithFormat:@"产品风格: %@",_dataInfo[@"fengge"]];
    _maiDian.text = [NSString stringWithFormat:@"员工培训卖点: %@",_dataInfo[@"peixu"]];
}

@end
